<%@ page language="java" contentType="text/html; charset=utf8" pageEncoding="utf8"%>
<%@taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html>
<head>
<LINK rel="stylesheet" type="text/css" href="css/styles.css">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Admin panel</title>
</head>

<body bgcolor=FFA98C>

	<div align=center>
		<table border="0" width="820px" cellspacing="0" cellpadding="0"
			align=center>
			<tr>
				<td class="left"></td>
				<td width=800>

					<table border="0" width=800 cellspacing="0" cellpadding="0" align=center height=840>
						<tr height=30px>
							<td class="menu_login" colspan="2">&nbsp;</td>
							<td class="menu_login" colspan="3">&nbsp;</td>
							<td class="menu_login" colspan="3">
								<a class="menu_login" href="/CoffiSweetDreams/">На главную</a>
							</td>
							<td class="menu_login" colspan="2">
								<a class="menu_login" href="/CoffiSweetDreams/logout">Выйти</a>
							</td>
						</tr>
						<tr>
							<td class="logo" colspan="10">&nbsp;</td>
						</tr>
						<tr height=30px>
							<td class="menu_tb" width="50">&nbsp;</td>
							<td class="menu_tb" width="140" colspan="2">
								<a class="menu_login" href="/CoffiSweetDreams/managerusers.htm?action=listdishs">Контент</a>
							</td>
							<td class="menu_tb" width="140">
								<a class="menu_login" href="/CoffiSweetDreams/managerusers.htm?action=userlist">Пользователи</a>
							</td>
							<td class="menu_tb" width="140" colspan="2">Логи</td>
							<td class="menu_tb" width="140"></td>
							<td class="menu_tb" width="140" colspan="2"></td>
							<td class="menu_tb" width="50">&nbsp;</td>
						</tr>
						<tr>
							<td bgcolor=FFFFFF colspan="10" valign="top">

								<div style="padding: 0; margin: 20;">
									<div align="center">
										

<% 
	String urlpage="/WEB-INF/jsp/Admin/Administaration_users.jsp";
	String action = request.getParameter("action");
								
	if (action!=null)
	{
		if( action.equals("userlist") ||  action.equals("useredit") || action.equals("finduser") || 
			action.equals("adduser")  || action.equals("deluser")) 
		{
			urlpage="/WEB-INF/jsp/Admin/Administaration_users.jsp";
		}
		
		if( action.equals("listdishs") || action.equals("adddish") || action.equals("editcategory") || 
			action.equals("deldish") || action.equals("dishedit") )
		{
			urlpage="/WEB-INF/jsp/Admin/Administaration_dish.jsp";
		}
																
	}
									
%> 

<jsp:include page='<%= urlpage %>' />



									</div>

								</div>
							</td>
						</tr>
					</table>


				</td>
				<td class="right">&nbsp;</td>
			</tr>
		</table>

	</div>
</body>

</html>